package greetings

import (
	"fmt"
	"os"
	"path/filepath"
)

//获取当前的可执行文件所在目录

func GetCurrentPath() string {

	ex, err := os.Executable()
	if err != nil {
		panic(err)
	}
	exPath := filepath.Dir(ex)
	fmt.Println(exPath)

	return exPath
}
